package com.aspose.cells;

class zny {
   Shape a;
   boolean b;
   zoj c;
   int d;
   String e;
   String f;
   String g;
   Chart h = null;
   zol i = null;
   zok j = null;
   znx k = null;
   boolean l = false;

   zny(znx var1, Shape var2, boolean var3) {
      this.k = var1;
      this.j = var1.a();
      this.a = var2;
      int var4;
      if (var1.h != null) {
         this.h = var1.h;
         if (var2.getPlacement() == 1) {
            this.d = 4;
         } else {
            this.d = 2;
         }
      } else {
         this.i = var1.g;
         var4 = var1.g.a.getType();
         if (var4 == 1) {
            this.d = 0;
            if (var2.g != null && "oneCellAnchor".equals(var2.g.f)) {
               this.d = 3;
            }
         } else if (var4 == 2) {
            this.d = 1;
         }
      }

      if (var2.getMsoDrawingType() == 8) {
         Picture var6 = (Picture)var2;
         if (var6.d()) {
            this.f = (String)var1.d.get(var6.getSourceFullName());
         }

         int var5 = ((Picture)var2).b();
         if (var5 >= 1 && var2.x == null && var1.d != null) {
            this.e = (String)var1.d.get(var5);
         }
      } else if (var2.getMsoDrawingType() == 5) {
         for(var4 = 0; var4 < var1.f.size(); ++var4) {
            znw var7 = (znw)var1.f.get(var4);
            if (var7.a.getChartObject() == var2) {
               this.e = var7.e;
            }
         }
      }

      if (var2.getHyperlink() != null) {
         this.g = (String)var1.e.get(var2.getHyperlink());
      }

      if (var3) {
         this.c = new zoj(var2);
         this.b = true;
      } else if (var2.g != null) {
         this.b = var2.g.n;
      }

   }
}
